package com.yalpuz.service;

import com.yalpuz.dao.UserDAO;
import com.yalpuz.entity.User;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional
public class UserService {

	@Resource
	private UserDAO userDAO;

	@Transactional
	public void save(User user) {
		userDAO.save(user);
	}
}
